import Button from './button/index.js';
import Loading from './loading/index.js';
import Dialog from './dialog/index.js';
import Dropdown from './dropdown/index.js';
import Pagination from './pagination/index.js';
import Checkbox from './checkbox/index.js';
import Input from './input/index.js';
import Breadcrumb from './breadcrumb/index.js';
import Switch from './switch/index.js';
import Scroll from './scroll/index.js';
import NavMenu from './navmenu/index.js';
import Tabs from './tabs/index.js';
import Table from './table/index.js';
import DatePicker from './datePicker/index.js';
import Carousel from './carousel/index.js';

//全部注册
export function install(vue) {
    [Carousel, Button, Loading, Dialog, Dropdown, Pagination, Checkbox, Input, Breadcrumb, Switch, Scroll, NavMenu, Tabs, Table, DatePicker].forEach(component => vue.use(component));
}

export default {
    install
}

export {
    Carousel, Button, Loading, Dropdown, Dialog, Pagination, Checkbox, Input, Breadcrumb, Switch, Scroll, NavMenu, Tabs, Table, DatePicker
}